package com.ruoyi.business.service;

import com.ruoyi.business.domain.Category;
import com.ruoyi.business.domain.Depart;
import com.ruoyi.business.domain.DepartVO;

import java.util.ArrayList;
import java.util.List;

/***
 * @author win
 * @date 2021-06-14
 */
public interface IDepartService
{
    /**
     * 查询Category
     *
     * @param id CategoryID
     * @return Category
     */
    public Depart selectDepartById(Long id);

    /**
     *
     * @return Category集合
     */
    public List<Depart> selectDepartList(Depart depart);

    /**
     * @return 结果
     */
    public int insertDepart(Depart depart);

    /**
     *
     * @return 结果
     */
    public int updateDepart(Depart depart);

    /**
     * @return 结果
     */
    public int deleteDepartByIds(Long[] ids);

    /**
     * @return 结果
     */
    public int deleteDepartById(Long id);

    /**
     * 根据归属获取部门
     * @param belong
     * @return
     */
    public List<Depart> getDepartByBelong(Long belong);

    List<Depart> selectDepartListWithLimit(Depart depart, Integer limit);

    List<DepartVO> selectDepartTree();
}
